Integrand size = 10, antiderivative size = 4 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=x+\cos (x) \]
[Out]
Time = 0.08 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4476, 2761, 8} \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=x+\cos (x) \]
[In]
[Out]
Rule 8
Rule 2761
Rule 4476
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cos ^2(x)}{1+\sin (x)} \, dx \\ & = \cos (x)+\int 1 \, dx \\ & = x+\cos (x) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(63\) vs. \(2(4)=8\).
Time = 0.09 (sec) , antiderivative size = 63, normalized size of antiderivative = 15.75 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=-\frac {\cos ^3(x) \left (2 \arcsin \left (\frac {\sqrt {1-\sin (x)}}{\sqrt {2}}\right ) \sqrt {1-\sin (x)}+(-1+\sin (x)) \sqrt {1+\sin (x)}\right )}{(-1+\sin (x))^2 (1+\sin (x))^{3/2}} \]
[In]
[Out]
Time = 1.44 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.25
method | result | size |
risch | \(x +\cos \left (x \right )\) | \(5\) |
default | \(\frac {2}{1+\tan \left (\frac {x}{2}\right )^{2}}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(21\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=x + \cos \left (x\right ) \]
[In]
[Out]
\[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=\int \frac {\cos {\left (x \right )}}{\tan {\left (x \right )} + \sec {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 30 vs. \(2 (4) = 8\).
Time = 0.29 (sec) , antiderivative size = 30, normalized size of antiderivative = 7.50 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=\frac {2}{\frac {\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1} + 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 14 vs. \(2 (4) = 8\).
Time = 0.28 (sec) , antiderivative size = 14, normalized size of antiderivative = 3.50 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=x + \frac {2}{\tan \left (\frac {1}{2} \, x\right )^{2} + 1} \]
[In]
[Out]
Time = 22.65 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{\sec (x)+\tan (x)} \, dx=x+\cos \left (x\right ) \]
[In]
[Out]